﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Uber.HabboHotel.Misc
{
    class AntiMutant
    {
        public bool ValidateLook(string Look, string Gender)
        {
            if (Look.Length < 5 || Gender != "F" && Gender != "M")
            {
                return false;
            }

            string[] Split = Look.Split('.');

            int Validate = 0;

            for (int i = 0; i < Split.Length; i++)
            {
                string Item = Split[i];

                if (Item.Length < 0 || Item == "" || Item == null)
                {
                    continue;
                }

                if (Item.StartsWith("hd") && Item.Contains("-"))
                {
                    Validate++;
                }

                if (Item.StartsWith("lg") && Item.Contains("-"))
                {
                    Validate++;
                }
            }

            if (Validate < 2)
            {
                return false;
            }

            return true;
        }
    }
}
